<?php

namespace App\model;

use Illuminate\Database\Eloquent\Model;

class Admin extends Model
{
	protected $table = 'admin';
	public $timestamps = false;
	
	public function VerifyUser($username)
	{
		$is_user = Admin::where('phone','=',$username)->get()->toArray();

		return $is_user ? $is_user[0] : '';
	}

	public function findID($id)
	{
		$is_user = Admin::where('id','=',$id)->get()->toArray();

		return $is_user ? $is_user[0] : '';
	}
}
